
<?php
session_start();
?>



<div  class=drag id=admin_toolbar title="drag me">
<!--  >div   id=admin_toolbar class=nodrag-->
<div id=admin_menu_bar class=nodrag>
<!--img src="/images/create_header.gif" alt="Create your content"-->
</div>
<div id="menu_admin" class=nodrag>
    
    <ul>
        <li>Menus
            <ul>
                <li onclick="Javascript:show_menu_edit()">Edit menus</li>
                <li onclick="save_menu_changes();">Save menu</li>
                <li onclick="Javascript:publish_menus()">Publish menus</li>
            </ul>
        </li>
        <li>Content
            <ul>
                <li onclick="Javascript:show_toolbar_edit()">Edit page</li>
                <li onclick="Javascript:save_page ()">Save page</li>
                <li onclick="Javascript:send_page_for_review();">Send for review</li>
                <li onclick="Javascript:publish_page ();">Publish</li>
            </ul>
        </li>
        <li onclick="Javascript:do_admin_logout();">Log out</li>
    </ul>
</div>
	   <div id=edit_top_bar class=nodrag>
		      <!--button id="btn_show_menu" onclick="Javascript:show_menu_edit();_menubar.reset()">Edit menus</button-->
		      
		      
		      <!--button id="btn_show_page_edit" onclick="Javascript:show_toolbar_edit()";>Edit page</button-->
					<!--button id=page_save_button onclick="Javascript:save_page ();">Save</button--> 
					<!--  >span id=toolbar_drag title="drag me"><&bull;></span-->
					<?php
					if (isset($_SESSION["edit_on"])) {
					?>
                                        
                                        <!--script type="text/javascript">
                                            _admin.article_admin_buttons();
                                        <script-->
					<!--button id=publish_save_button onclick="Javascript:publish_page ();">Publish</button>
					
					<button id=send_for_review_button onclick="Javascript:send_page_for_review();">Send for review</button-->
                                        
                                        
					<?php
					}
					?>
                                        
					
		 </div>
		 <!--div id=menu_publish_area><button id="publish_menus" onclick="Javascript:publish_menus();" class=nodrag>Publish menus</button></div-->
		 <div id=edit_middle_bar class=nodrag>
		      <div id=edit_menu_bar class=menu_top class=nodrag>
		     
			 <div id=menu_data ></div>
			 
			 </div>
			 <div id=sub_menu_data class=submenu_holder></div>
			 <div id=navmenu_data class=navmenu_holder></div>
			  
			 <!--div id=menu_save_area onclick="save_menu_changes();"><button>Save Changes</button></div-->
			 
			 
		 			<div id=edit_middle_bar_title>Double click a page item to edit it
					</div>
					<div id=edit_content_area>
							 <div>
							 			Text Editing
							 </div>
							 <div>
							 			<img onclick="Javascript:document.execCommand('bold', false, '');" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/bold.png" alt="Bold" title="Bold">
										<img onclick="Javascript:document.execCommand('italic', false, '');" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/italic.png" alt="Italic" title="Italic">
										<img onclick="Javascript:document.execCommand('underline', false, '');" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/underline.png" alt="Underline" title="Underline">
										<img onclick="Javascript:document.execCommand('strikethrough', false, '');" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/strike_through.png" alt="Strike Through" title="Strike Through">
										<img onclick="Javascript:justify_text('justifyleft');" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/align_left.png" alt="Align Left" title="Align Left">
										<img onclick="Javascript:justify_text('justifycenter');" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/align_center.png" alt="Align Center" title="Align Center">
										<img onclick="Javascript:justify_text('JustifyFull');" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/align_justify.png" alt="Align Justify" title="Align Justify">
										<img onclick="Javascript:justify_text('justifyright');" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/align_right.png" alt="Align Right" title="Align Right">
							 </div>
							 <div>
							 			 <img onclick="Javascript:document.execCommand('insertunorderedlist', false, null);" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/bulleted_list.png" alt="Bulleted List" title="Bulleted List">
										 <img onclick="Javascript:document.execCommand('insertorderedlist', false, null);" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/numbered_list.png" alt="Numbered List" title="Numbered List">
										 <img onclick="Javascript:document.execCommand('outdent',false,null);" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/decrease_indent.png" alt="Decrease Indent" title="Decrease Indent">
										 <img onclick="Javascript:document.execCommand('indent',false,null);" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/increase_indent.png" alt="Increase Indent" title="Increase Indent">
							 </div>
							 <hr>
							 <div>Link editing
							 </div>
                                                     
							 <div>
							 			<img onclick="Javascript:create_link();" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/insert_link.png" alt="Insert Link" title="Insert Link">
										<img onclick="Javascript:remove_link();" src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/remove_link.png" alt="Remove Link" title="Remove Link">
							 </div>
							 <hr>
                                                         
							 <!-- div>Image editing</div>
							 <iframe id=fileuploader src="/modules/uploader" frameborder=0></iframe>
							 <div id=image_disclaimer>Note: Image size should be 675 X 210 pixels</div-->
                                                         <div>Image gallery and alignment
							 </div>
							 <img id=image_insert_button 
							 	src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/insert_image.png"
							 	title = "Insert image"
							 	alt = "Insert image"
							 	onclick = "Javascript: insert_article_image(this.id);"
							 >
							 <img id=image_insert_button 
							 	src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/upload_image.png"
							 	title = "Upload image"
							 	alt = "Upload image"
							 	onclick = "Javascript: upload_article_image(this.id);"
							 >
                                                         
                                                         <img src="/modules/toolbar/templates/create/images/16x16/align_left.png" title="align left" 
                                                            onclick="_image_manager.align('left');">
                                                        <img src="/modules/toolbar/templates/create/images/16x16/align_center.png" title="no align" 
                                                             onclick="_image_manager.align('center');">
                                                        <img src="/modules/toolbar/templates/create/images/16x16/align_right.png" title="align right" 
                                                             onclick="_image_manager.align('right');">
                                                        
                                               
							 <hr>
                                                          <div>Media
							 </div>
                                                         <div id="media_edit_area"></div>
                                                         <div id="htmlTable_controls"></div>
					</div>
					<div id=edit_info_bar>
					<div>Right hand info bar items</div>
					<?php
					$remove_box = show_remove_box($area, $section, $file);
					show_info_select($remove_box,$area,$section,$file);
					
					?>
					</div>
		 </div>
     <!--div id=edit_bottom_bar class=nodrag><button onclick="Javascript:do_admin_logout();">Log Out</button-->
		 </div>
</div>

<div id=image_gallery class=image_gallery_unloaded> 
	<div style="text-align:right;">
		<img id="close_gallery_button"  
		src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/undo.png"
			onclick = "javascript:close_gallery();"
		>
	</div>
	<div id=image_gallery_content></div>
        
        
	
</div>
<div id=image_upload_area class=image_gallery_unloaded>
	<!--  
	25/5/2011 This section doesn't work in IE
	<div style="text-align:right;">
		<img id=close_gallery_button 
			src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/undo.png"
			onclick = "javascript:close_gallery();"
		>
	</div>
	<iframe src="/modules/uploader/upload_single_image.php"></iframe>
	-->
	<div style="text-align:right;">
		<img id=close_gallery_button 
			src="/modules/toolbar/templates/create/images/<?php echo $config["icon_size"];?>/undo.png"
			onclick = "javascript:close_gallery();"
		>
	</div>
	<form action="/modules/uploader/upload_single_image.php" method="post" enctype="multipart/form-data" name="form1" id="form1" target=image_upload_frame>
Upload Image
<input style="border:2px;" name="ufile" type="file" id="ufile" size="10"></input>
<input type=submit value="Upload"></input>
</form>
<button onclick="javascript:insert_image_next()" id=insert_image_next_button style=display:none;>Next...</button>
<iframe frameborder=0 name=image_upload_frame id=image_upload_frame></iframe>

	
	
	
</div>

<div id=image_alignment_menu style=display:none>
    
<div>Image Alignment</div>
<div><img src="/modules/toolbar/templates/create/images/16x16/align_left.png" title="align left" onclick="img_align_left(this.src);"></div>
<div><img src="/modules/toolbar/templates/create/images/16x16/align_right.png" title="align right" onclick="img_align_right(this.src);"></div>
<div><img src="/modules/toolbar/templates/create/images/16x16/align_center.png" title="no align" onclick="img_align_center(this.src);"></div>

</div>
<div id=gui_instructions></div>
</div>



<!--object id="page" type="text/html"
data="/modules/uploader/upload_single_image.php"
width="400" height="490"-->
